package com.zhenghaijin.model;

import java.util.Date;

public class Comment {
    private String id;
    private String userId;       // 评论用户的ID
    private String animeId;      // 被评论的动漫ID
    private String content;      // 评论内容
    private Date createTime;     // 评论时间

    // 构造方法
    public Comment() {}

    public Comment(String id, String userId, String animeId, String content, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.animeId = animeId;
        this.content = content;
        this.createTime = createTime;
    }

    // Getter 和 Setter 方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAnimeId() {
        return animeId;
    }

    public void setAnimeId(String animeId) {
        this.animeId = animeId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}